<!doctype html>
<html >
<head>
<include file="Public:headinc" />
<link rel="stylesheet" href="<?php echo MY_CDN; ?>/admin/css/postinfo.css" />
</head>
<body>
<div style="margin-top:22px;">
	<form id="f1" method="post" action="{:U('Category/doEditCategory')}">
		<table width="100%">
		<tr>
			<td class="y-alignRight" width="100">栏目名<span class="y-highlight">*</span>：</td>
			<td class="y-alignLeft">
				<input type="text" id="catname" name="catname" value="{$data['catname']}"/>
			</td>
		</tr>
		<tr>
			<td class="y-alignRight" width="100">上级栏目<span class="y-highlight">*</span>：</td>
			<td class="y-alignLeft">
<select id="parentid" name="parentid">
<option value="0">无</option>
<foreach name="cat" item="val">
<option value="{$val['id']}" <?php if($data['parentid']==$val['id'])echo 'selected="selected"'; ?> >{$val['catname']}</option>
</foreach>
</select>
			</td>
		</tr>
		<tr>
			<td class="y-alignRight">地址<span class="y-highlight">*</span>：</td>
			<td class="y-alignLeft">
				<input type="text" id="caturl" name="caturl" value="{$data['caturl']}"/>
			</td>
		</tr>
		<tr>
			<td class="y-alignRight">是否显示</td>
			<td class="y-alignLeft">
				<select id="isshow" name="isshow" >
				<option value="1" <?php if($data['isshow']=='1')echo 'selected="selected"'; ?> >是</option>
				<option value="0" <?php if($data['isshow']=='0')echo 'selected="selected"'; ?> >否</option>
				</select>
			</td>
		</tr>
		<tr>
			<td class="y-alignRight">链接类型</td>
			<td class="y-alignLeft">
				<select id="linktype" name="linktype" >
				<option value="1" <?php if($data['linktype']=='1')echo 'selected="selected"'; ?> >站内链接</option>
				<option value="2" <?php if($data['linktype']=='2')echo 'selected="selected"'; ?> >站外链接</option>
				</select>
			</td>
		</tr>
		<tr>
			<td class="y-alignRight"><input type="hidden" name="pkid" value="{$data['id']}" /></td>
			<td class="y-alignLeft">
				<input type="button" class="btn btn-inverse" value="提交" onclick="doEditCategory()"/>
			</td>
		</tr>
		</table>
	</form>
</div>
<script charset="utf-8" src="<?php echo MY_CDN; ?>/admin/js/editCategory.js"></script>
</body>
</html>
